package com.eudon.design_pattern.behavioral.observer.event_bus;

import java.lang.reflect.Method;

/**
 * @author eudon
 * @description 事件驱动
 * @date 2025/9/2
 * @email syd19970616@gmail.com
 * @address <a href="https://gitee.com/eudon">Gitee</a>
 */
public class EventAction {
    private final Object observer;
    private final Method method;

    public EventAction(Object observer, Method method) {
        this.observer = observer;
        this.method = method;
    }

    public Object getObserver() {
        return observer;
    }

    public Method getMethod() {
        return method;
    }
}
